package user;

import book.BookList;
import opera.IOPeration;

public abstract class User {
    protected String name;
    protected IOPeration[] ioPerations;

    public User(String name) {

        this.name = name;
    }
    //创建一个抽象类，实现菜单
    public abstract int menu();
    //通过对象的相应调用与所传参数实现操作者选择的功能
    public void doWork(int choice, BookList bookList) {
        this.ioPerations[choice].work(bookList);
    }
}
